public class Ti6 {

	public static void main(String[] args) {
		int array[] = { 5, 3, -1, 12, 0, -14, 9 };
		int array1[] = new int[array.length];
		int he = 0;
		int pingjun = 0;
		for (int i = 0; i < array.length; i++) {
			he = he + array[i];
		}
		pingjun = he / array.length;
		for (int i = 0; i < array.length; i++) {
			array1[i] = array[i] - pingjun;
			System.out.print(array1[i] + "  ");
		}
	}

}
